//
//  NPHomeHeaderBar.h
//  newProject
//
//  Created by Mac mini on 2017/11/21.
//  Copyright © 2017年 zt. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol homeHeaderBarDelegate <NSObject>

-(void)homeHeaderBarClickWithIndex:(NSInteger)index;

@end

typedef enum {
    star_commodity,
    new_commodity,
    
}HOME_HEADER_BAR;

@interface NPHomeHeaderBar : UIScrollView

@property(nonatomic,strong)UILabel *bottomLab;
@property(nonatomic,strong)NSMutableArray <UIButton *>*buttonArray;
@property(nonatomic,strong) UIButton *selectButton;
@property(nonatomic,assign)id <homeHeaderBarDelegate> barDelegate;

//@property(nonatomic,strong)NSArray *buttonTitleArray;


-(instancetype)initWithFrame:(CGRect)frame andTitleArray:(NSArray *)titleArr;

-(void)setScrollLabWithX:(CGFloat)x;    //bottomLab
-(void)setScrollButtonWithX:(NSInteger)page;    //button
-(void)markBoundWithIndex:(NSInteger)index andImageName:(NSString *)imageName;
@end
